import { http } from "@/utils/http";

export type commonResult<T> = {
    code: number;
    msg: string;
    result: T;
};
/** 3.3.2获取单位设置信息 */
export const getScreenUnitTree = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/unity/v2/setting/setting', {
        params
    });
};
//3.1.1 项目列表 搜索
export const statisticprojects = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/statistic/v2/projects', {
        params
    });
};
//3.1.8 （单位首页、应用系统告警、巡检、工单） 项目地图位置及告警信息
export const projectalarm = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/statistic/v2/unity/project/alarm', {
        params
    });
};
//3.3.2获取单位设置信息
export const unitysetting = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/unity/v2/setting/setting', {
        params
    });
};
//3.4.1获取项目设置信息 
export const projectsetting = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/project/v2/setting/setting', {
        params
    });
}
//3.1.6 单位首页---项目统计（告警事件、巡检任务、工单任务）
export const unityproject = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/statistic/v2/unity/project', {
        params
    });
}
//3.4.4获取当前项目的建筑点位信息/监控点位信息/设施点位信息 
export const projectpoint = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/project/v2/project/point', {
        params
    });
}
//3.3.3获取单位/项目中存在的系统 
export const systematic = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/unity/v2/device/systematic', {
        params
    });
}
// 
export const systematicson = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/unity/v2/device/sys-sec', {
        params
    });
}
//监管大屏地图点位信息 
export const projectpointsupervise = (params?: object) => {
    return http.request<commonResult<any>>("get", '/supervise/index/v2/project/point', {
        params
    });
}
// 3.5.3个体概览里面家庭的点位信息
export const personalpoint = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/personal/v2/point', {
        params
    });
}
//3.5.4 个体概览里查询家庭详情
export const familyfamily = (params?: object) => {
    return http.request<commonResult<any>>("get", '/screen/personal/v2/family/family', {
        params
    });
}